<template>
  <div class="su-container">
    <template v-if="mode===0">
      <order></order>
    </template>
    <template v-if="mode===1">
      <branch></branch>
    </template>
    <template v-if="mode===2">
      <material></material>
    </template>
    <template v-if="mode===3">
      <user></user>
    </template>
  </div>
</template>

<script>
  import Order from './Su/GDFunctionSuOrder'
  import Branch from './Su/GDFunctionSuBranch'
  import Material from './Su/GDFunctionSuMaterial'
  import User from './Su/GDFunctionSuUser'

  export default {
    name: "GDFunctionSu",
    components: {
      Order,
      Branch,
      Material,
      User
    },
    computed: {
      mode() {
        return this.$store.state.select;
      }
    },
    mounted() {
      this.$store.commit('setSel', 0);
    }
  }
</script>

<style scoped>
  .su-container {
    width: 100%;
    /*height: 100%;*/
  }
</style>
